package com.zby.ss.core.facotry;

import java.io.File;
import java.util.List;

/**
 * Created By zby on 15:11 2019/2/16
 */

public interface FileFactory {

    /**
     * Created By zby on 15:12 2019/2/16
     * 修改过滤文件的正则表达式
     */
    String modifyRegex(String regex);

    /**
     * Created By zby on 15:13 2019/2/16
     * 根据文件夹加载配置文件
     */
    File[] local(File dir, final String regex);

    /**
     * Created By zby on 15:16 2019/2/16
     * 根据文件路径加载配置文件
     */
    File[] local(String path, final String regex);

    /**
     * Created By zby on 15:17 2019/2/16
     * 展示所有的文件
     */
    List<File> listFile(File dir);
}
